home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-07-15 | 1.2 KB | 30 lines | [TEXT/MPS ] |
- MModal 7.0
- A small sample showing one way of implementing Movable Modal
- dialogs in a 7.0 or later application.
-
- Movable Modals are a new feature in the interface, and our current
- System Software does not provide the same kind of
- 'automatic' support for them that a regular Alert or Modal Dialog
- has, so you have to invest some code to make the things work.
-
- It's not at all difficult once you understand the issues,
- it basically comes down to adding one more global to your application,
- and checking that global whenever you might shuffle windows.
-
- Here's a small sample app that has two non-modal windows. Select
- 'Open MModal Dialog' from the Test Stuff menu, and a MModal dialog
- will come up.
- Following the interface guidelines, you can,
- • Move the MModal dialog around
- • Switch out to other applications, either with the Application menu
- or a click in another app's window or the Desktop
- • You CANNOT select any of the other two windows in the application
-
- Try it, look at the code, you'll see how straightforward it can be.
-
- And again, this is one way of doing it, not the only way. Do what you need
- to in your application, keeping the Interface Guidelines as your goal.
-
- C.K. Haun
- Apple DTS
- 3/5/92